gracefully kill factcgi daemon

Change-Id: Ic6264dec4c94441c2f700ec081d97e9fbb6163d8
Reviewed-on: http://review.couchbase.org/31077
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>