Added QUIT command functionality.