Fix undeployment. Ports have to be closed