[MonoDevelop.Debugger] code cleanup & make sure the debugger session is paused before dereferencing the session

Fixes bug #15137