Deployer update

The deployer now waits until deployment finishes or fails to finish.