Implemented Dispose() and checks for disposed instance