if the debug menu was open when pausing, it gets closed