Cleanup and commit.