Teardown function for Subsystem. Acts as a destructor.