add reaping of java promises