Oops - repercussions of the close-on-exit stuff which I forgot to