How to prevent the dialog that shows the available wireless networks to show twice?
Open System Preferences, go to networks, select Airport and make sure the "Ask to join new networks" check is not selected. 



This will suppress the dialog all the time as there isn't an easy way to have it suppress a second dialog in a timeframe or after a disconnect event.