The exit() and quit() built in functions do just what you want. No import of sys needed.
Alternatively, you can raise SystemExit, but you need to be careful not to catch it anywhere (which shouldn't happen as long as you specify the type of exception in all your try.. blocks).