Use os._exit instead of sys.exit in healthcheck