Should not all exceptions be logged? In this case only the last exception is logged.