Add _disposed flag check before disposing