allow client to disconnect when handlers are done