Dispose the hash algorithm properly