added close all ports option