This would cause issues when creating and setting a different event loop from a different thread since it would use the old loop and not the new one, solved by explicitly getting the loop every time, although this has a slight performance hit.