Resolves the issue of the server crashing caused by uncaught exceptions. #41