fixed possible memory leak on draining of remaining tasks after shutdownNow