Updated exception handler
Updated log output.