I don't understand why are you using a try statement here without catch.. forEach is synchronous if you want to delete this try/finally statement