Fixed delayed/incomplete freeing of client resources and