Wait for deploy to finish before calling done.  CLoses #44
If a deploy fails, finish with error. #44