According to the documentation:
os._exit():Exit the process with status n, without calling cleanup handlers, flushing stdio buffers, etc.
Note The standard way to exit is
sys.exit(n)._exit()should normally only be used in the child process after afork().