cancel connection after done