Implemeting IDisposable interface to release CTS object correctly.