systemsw: Cleanup domain and core handling