Fixes #19 delay when closing a file

* turns out shutting down the bridge can take a few seconds