Fix graceful exit

When the gearman server was added, the exit handler was not updated
correctly.  It should tell the scheduler to exit, wait for the
scheduler to empty its pipelines, and then kill the gearman server
and exit.

Change-Id: Ie0532c2ea058ed56217e41641f8eec45080a9470
1 file changed