complete otp servers exercise 4. handle termination