Add semaphore when stop the camera, need to wait after finishing the capture. Drop capture if already doing another capture (caution for accumulate frame into buffer)
Fix then select raise exception (example, when the file descriptor doesn't exist at this moment)