Logging exception & Null checks.