When a doctor becomes mentally ill