Nice and clean. You need to clean up ode stuff before you sys.exit or it will throw and error on exiting.