I think best practice is pull up to a stop with foot on the brake, pull up the hand brake, release foot off the brake pedal, turn off the car, clutch in (or not, don't think it matters once car is off) put the gearbox in 1st or reverse depending on whether you're facing up/down.
I do this in autos too, foot brake, hand brake, release foot brake, put lever into P.