handle reconnects with a bit more grace