See the Panic Button (brewmaster blog post) example which was developed as the result of another post on this same subject.