Caugh exception if Joomla logging breaks and reports it to the error_log