To Reproduce: 1. Start the server and let it fully start running 2. Stop the server 3. Close the application 4. Profit, error was thrown but application still closes Notes: If the server was closed after a length of time, it doesn't throw an error