Fix stop issue

Fix issue when stopping after recording then pausing then stopping that
would hang the program due to events not being passed due to the sink
bin being paused.