to see if there is a transfer to/from someone, look into $send/$get. if you wanted to make sure it was actually sending, you could compare the .sent from one point to the .sent from another point.
to cancel/close almost any kind of window, look into /close. /close -s will close sends, -g gets, and so on.