Close the current client before delivering the last will.

Closes #100.