code: function(){
          var bundle = self.bundle;
          var PID = self.PID;
          var proc = self.proc;
          var path = self.path
          //Get PID path.
          if (
              typeof(bundle) != "undefined" && bundle != ""
              && typeof(PID) != "undefined" && PID != "" && PID != null
              && typeof(proc) != "undefined" && proc != "" && proc != null
          ) {
              try {
                  var fileStream = fs.createWriteStream(path + PID);
                  fileStream.once('open', function(fd) {
                      fileStream.write(bundle);
                      console.debug('registered ', self.proc.pid);
                      fileStream.end();
                      self.emit('proc#complete', false)
                  });
              } catch (err) {
                  self.emit('proc#complete', err)
              }
  
          } else {
              self.emit('proc#complete', new Error('encountered troubles while trying to save Process file'))
          }
      }
docs: Save PID file
  @param {string} bundle
  @param {integer} PID Id of the PID to save
  
  @private