Logging, handling some exceptions, hlmv.