I leave the oil to drain overnight and there is usually not enough left in the filters to make any mess.
Otherwise I loosen the filter, then wrap it with a plastic shopping bag before I undo it completely and catch the oil in the bag.