Added: beforeDispatchRequest and afterDispatchRequest events
Fixed: Engine - End transaction on error