remove agent upon disconnect