Use the terminate method when a TerminationRequest is received