Added Philipps method to cancel deploy to my code.
Deploying can now be canceled. I did not check for any lose ends
after the canceling. What I did is only for the user to be used whenever
Deploying seems to be broken, so the deploying process can be stopped
before the whole plugin is shut down.

It would be good if somewone looked after what might be happening on the
modules after the deployment process has been canelled, since the
cancelling could happen any time independent from what is happening on the
modules.