Shut down the server when the clients have done all they need to, rather than waiting a fixed period and hoping for the best