close debug switch