close debug flag