error handling on responses

if the request involves an asynchronous operation, the response could throw an 'error' event crashing the node instance.
I've added a naive error handling on responses.