fixed issue with non-promise errors in try/catch/finally blocks