Better logging of error messages in executor.