[AS7-6379] await connection closed when reloading