fixing exitting without cluster already initialized
adding more options to be used when integrating directly into node.js