Issue 6857: Register as a module and destroy the debugger when the user
resumes