Fix stopping the encoder when using StartStreamHotkey with file output

See http://obsproject.com/forum/viewtopic.php?t=11820