record.js: Destroy the recordGrid if the pipeline StateChangeReturn is failed

Reset the UI if the recording process fails