move job group releasing logic from job destructor