You may need to do a raytrace on a timer to check if the player has become obscured and stop the camera from tracking you.