done exception handler for RPC