when error is thrown, if attachments are the same for IN and OUT message, they should be not cleared.