We are already waiting for the container death. I do agree that there could be a race here between the gothreads and the process exit notification from kernel. I have modified the code to wait for the oom notification channel to be closed before returning. Does this look good? 