Fixed exiting if a port was forcibly released