cleanup before hand off