Fixed NPE if endHandler is unset just after unregister and removed call of exceptionHandler