Fixed 
-deploy not finish if exception occur.