fixed quit command when invoked while in a room