Force app exit if port is unavailable.