|execute| promise support; Fixed memory leaks