Break out server socket binding into idempotent method