Implemented IDisposable for MagnetcardReader.cs.