My mother used to call this phenomenon "Resistentialism" - the inherent perversity of inanimate objects...

I think there exists a more formal and not-quite-identical definition out there...