'We may exit the program at any time.
We want to remove the temp folder and any files contained within it.
Removes the temp files/folder and exists with error code "code".'

def exit_gracefully(self, code=0):

    if os.path.exists(self.temp):
        for f in os.listdir(self.temp):
            os.remove(os.path.join(self.temp, f))
        os.rmdir(self.temp)
    self.RUN_ENGINE.disable_monitor_mode()
    mac_change_back()
    print (((GR + '    [+]') + W) + '    quitting')
    print ''
    exit(code)
