call[fs]cgi: Fixed shutdown bug.