Phelps glad to end career on own terms