Change to perpetual loop

This is a small change to keep trying if the user specified '-wait'. In my use case the event loop would sometimes exit due to two containers needing to link to each other.