Catches any uncaught errors and exceptions, including most Fatal errors
(Yay PHP7!). Will log the error, display it if display_errors is on,
and fire an event that allows custom actions to be taken at this point.

@param \Throwable $exception