fixed node version
error handling for mongo instance added, and process exit