Implement Reservoir_Shutdown hook

Allows clients to call shutdown for a graceful quit.
(Also eliminates the need to do CTRL-C manually.)

Signed-off-by: Robert Xu <robxu9@gmail.com>