debug process can be null before termination; added a null check before termination
debugger can now ignore optimized global variables