close the debug