Its possible with a reactor, but any code that executes *must* be quick. The application doesn't pause while the reactor-called code executes, so its entirely possible for the application to hang since something is still running when it tries to finally exit.