[RFC] Fix segfault when calling methods in a client that already exited

This should close #1125