Cleaning up pending_user_input.