Try to close out all channels
Close the connection safely