prevent calling sys if interpreter is shutting down