This sort of thing is best done with connecting flights where an aircraft change is involved, you simply don't board the next one.
Getting off an aircraft which is continuing is a different matter as a cabin search could be called for incase anything had been planted.