Better handling for exception logs