Add error handling for scheduler
Fix forEach
Also return a promise
Increase schedule interval to 10s