More robust socket binding