Fixes Record#afterSave trigger to log errors on failure.