throw an exception if there is no port available for running stub