Rajon Rondo almost retired after ill-fated stint with Mavericks