Add a 'done' event whenever an io operation ends