Modified slightly. It is not possible to start multiple handlers each registered to a random port