"undefiend" typo in shutdown()