Closing the event loop group to stop the problem of having too many open files on the machine