Fix bug where restarting dialog was not getting hidden

So the UI gets stuck in 'Restarting' modal for up to a minute.
This is because the event call seems to block until a there are new events:
![](http://i.snag.gy/5bR4B.jpg)