Unify unmount behaviour on Linux and OS X

Unmount volume before exiting the event loop.