Clean up RTSP upon termination
Optimize netcam_read_rtsp_image