Add dialogbox for losing connection