added some cleanup code for the recorder test