Rewrote the deploy function after losing work on Friday
Updated clone base class to exit if it fails (duplicate code reduction)