Fixing exception handling for remote parallel algorithms