Update default.py

example implementation of proper exit
(UNTESTED!)