Handle native client crashes gracefully