rescue exceptions and log