title: using oncleanUp config option in protractor
body: <p>In my protractor configuration file, I am using the onCleanUp option as below:</p>
  
  <pre><code>onCleanUp: function(exitCode){
  
         var exec = require('child_process').exec, child;
  
         child = exec('node somescript.js',function(error,stdout,stderr){
            console.log('stdout: ' + stdout);
            console.log('stderr: ' + stderr);
            if (error !== null) {
              console.log('exec error: ' + error);
            }
         });
     },   
  </code></pre>
  
  <p>However I noticed that somescript.js does not get executed. Is there something I am missing here ?</p>