Added 500 internal server error and cleaning up streamer.py