Overloading the exit command to precent accidental container closure