Contingency states "The spell to be brought into effect by the contingency must be one that affects your person". So most likely would be grease, escape grapple, and dimension door.
A ring of spell storing could also provide a way out. However, it takes at least a standard action to cast a spell in this way (up to the normal casting time of the spell).