Improved error-handling for JS admin client and fixed all integration tests