Add exception handling feature

Same comment as the other logger