ignore ssl errors

call next(err) instead of res.send(500)