added error handling, fix for: events.js:72 throw er; // Unhandled 'error' event