add is shutdown check