add mongoose connect error handler