Resolved few bugs by Dinesh Kumar per Dave's feedback, also resolved a bug related in-reponsible debugger - when close it, while debugging is in progress on windows and osx