I understand why you would be uncomfortable about it. But I firmly believe that giving an employee time to reflect on what went wrong & why is important. And they need distance to achieve this. If you're immediately chummy with them after a failure then this time of reflection is less likely. I know it doesn't sit well with everybody so I'm not asking you to adopt my style. But it is not manipulative and actually is quite effective.