Renamed Dispose method to close.

required : @nadavbar