When you want to leave terminal open but force sudo to forget password then enter command:

$ sudo -K