log error and continue when exception