Added double forking to undeploy process