terminate workers before starting them again

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