Added check for free ports while creating router in Workflow