Actually, there is a 30 day wait on re-signing a released player. I think Hanley was technically released on June 1st, so they couldn't re-sign him until July 1 at the earliest.
And Kimmi has it correct, there is zero chance of Dombrowski taking him back (and zero chance that Hanley would come back to Boston.)