Fix leaking memory cards.

This seems weird to me. I think we should either have a Shutdown method on the channel which iterates over all its devices and calls Shutdown. Better yet, just make it part of the destructor.