Fixes #1

shutdown the server regardless of any exception that occurs.