improved quit command