Hanging is a violent act against a person, therefore if we are present at a hanging we are being party to some kind of unpleasantness and perhaps should reconsider our actions.

If we ourselves are being hanged, we are being warned of some difficulty ahead.