functorize client stop command

Summary: Functorize Hack client stop command.

Reviewed By: @jwatzman

Differential Revision: D1398492