Closing camera on failed capturing preview.