Fixed a small Memory Leak
Fix destructor video outputs.

This fixes a crash on Linux that supposedly occurs when pthread_join
is called multiple times.
Close rtmp connection when stream is stopped.

This will close the connection to the server when the stream
is stopped.
Merge pull request #71 from fryshorts/master

Some minor fixes