Add 'before exit' actions.
Callback witch execute juste before the exit process when the user type
the 'exit' command.