forgot to close resources
Revert "change api execution interval 10 sec to 20 sec"

This reverts commit bc2978eabef340f3436f25d671c38b905a2dae6b.