Mattingly on exit: 'This was best for both parties'