Finish sending disconnect packet before disconnecting