server.restart will force thread.destroy after 1 second