fixed 4456: call register[Error|Exception]Handler with static instad of self to make it possible overwrite the methods but using the auto register logger options