Improve event handling in LocalDebuggee