adding memory checker to kill phantomjs processes if memory creeps