What do I need to do before unplugging the storage device after I have recorded to it?

VMedia > TV > PVR
When you want to unplug the SD card, USB key, or hard drive, make sure you go to Storage and Reset in the Settings menu, select your device, and Eject, before you disengage it from your VBox.