Runtimeerror event loop is closed. Run macro. runtimeerror: can't register atexit after shutdown.