Saving message content on close (on activity result).