Fix for #199

When an NSM user wants to close a session, NSM sends a save command
followed by closing the application. Since hydrogen processed the save
command asnynchronously, it was got killed by NSM before the async.
event could be handled.