clearInterval(this.heartBeatId);
    if (this.commands.size > 0) {
      this.logger.warn('exit() was called before waiting for commands to finish. '
          + 'Make sure you are not calling exit() prematurely.');
    }
Cleans up and end the phantom process