Changed Exception handling in Logger