support rethrowing js exceptions as haskell exceptions