Change the way reconnects are handled