only shutdown executor if we created it