log error if handler throws