Implementation of saveRecording handler