closing the panel when audio has completed