fix disconnect after async saving to db