Fixed the bug

Incorrect closing MJPEG stream