catch all exceptions and log