Exit the process if the server doesn't close in time