Promise updates and specific fixes for error handling in browsers