allow nil error handler