Protects against possible Attachment closing InputStream