Add support for exception in pre/post send event