Patching the disconnect and connect events.
Adding segfault stack traces.