API NotWhileDeadError

Generates an error message saying you cannot do that while dead. NotWhileDeadError;