Add error checking to the Recorder class.