Delete task 'deploy' before raise exception on deployment start

Closes-Bug: #1354401

Change-Id: I5906cbfc094e0d0ca67158ba9fbec233eefb014e