Logging. Fine handling exception