try closing the camera after the capture