implemented shutdown procedure for ExpCore