call postStop on exit