catch NoSuchProcess errors