Added support for WaitGroups on the QuitChan