His contract was actually fairly specific, and he also carefully devised an escape mechanism -- he arranged his own murder and had Molly erase the memory. This speaks to his careful planning.
I withdraw the accusation of stupidity, since Harry didn't think the money would matter since he was going to be dead (one way or the other) afterwards.