wait for re-connection

fixing https://github.com/iNecas/dynflow/pull/35#issuecomment-24940223