Implement the QUIT command and disconnect