Updated error class to pass the Exception for the 500 triggered event.
Merge pull request #1711 from torm3nt/master

Event firing of 500s now passes along the $exception object