Try making the server thread a daemon