Things have a nasty 'habit of not turning out' the way you expect them to. [=things often do not turn out the way you expect them to]
He reached into his pocket for his keys 'by/from force of habit'. [=he did it without thinking because it is what he usually does]
I'm 'not in the habit of' making predictions, but I don't think there's much doubt about who will win this election.
(..) That is very bad news, Why didn't you, Mr, Kern, inform me that Greenspan was missing? - No one knew that he was missing, - I was talking to Mr, Kern here, You have a bad habit of hiding information from us, The body that was found is Mr, Greenspan? (Locket) That's correct, Your Honor, (..)1994 The Glass Shield