SES-1790 : Use try-with-resources in MemoryStore.addStatement