Flush and wait inside Lpxc#close.