Solved.

sys.exit() solved everything. >.<