Stop the devices ioservice
Don't ifdef out main if not on Unix

This only makes sense if we provide an alternative version for Windows.
Try really hard to stop the devices ioservice