Make worker exit after a build