client: Fix crash in close handler
The close handler could trigger a crash because it invalidated the watch_context while still leaving a source attached to it which would be cleaned up at a later point.
I ran into this on 1.14, but I expect this is also needed on master.
Edited by Benjamin Berg