Fix for db.close error when downloading attachments