Runtimeerror Cannot Close A Running Event Loop