Make sure to shutdown the reactor thread.