release resources used in initialization