@skinnylatte apparently the mastodon android client has a bug that prevents adding alt text to photos and voids the post. It looks like the tap is propagating to the second layer so you click the back arrow to add the alt text and the message is also passed to the next screen where the X close action is.
AFAICT this only happens during replies.