Added support for postFlush event

- This event allows ->flush() to be called from its listeners.