fix superagent error handling