close kuyruk connection at exit