Starting JSON-RPC support with error handling.