You can use the
ON QUIT statement within a remote procedure to intercept any
QUIT condition raised during execution and handle it as your application requires. Otherwise, the
QUIT condition propagates to the client application. For information on unhandled
QUIT conditions, see
Effectsof unhandled conditions.