Make JS report failed imports with exceptions