Clean up logic for exiting input loop and scoring.