how to handle losses