Close the debug mode.