On error, attempt to stop the server.

Stop the server as best we can on error and allow the error to bubble up
to the main method so it choose what to do.