Sam Raimi knows that Spider-Man 3
wasn't received well. He has pretty much admitted that in interviews. I think he wants to leave with a bang, which is why he returned to do Spider-Man 4
in the first place. To think it has anything to do with "returning to the well" or money is absurd.