Cleaning reference to previous client