added error logger to error handler, in case something blows up error in the error handler