Converted the Email module to an IDisposable type.