Fixed complete event being emitted before asynchronous jobs are finished