Use the "end" event, not documented on nodejs.org