Cleanup at the end.