User-code exception handling code moved to LocalExecutor