Raises an event the same way as Events.raise but catches an exception and logs it if the logger is provided