Clean up the screen more correctly in the Q command.