Added Quit command with timeout