FIX problem with visibility scope in exec()

MODIFIED debugger.py - FIX problem with visibility scope in exec() and DO correct exit in user's scripts