Whatever the context(s) of these events, the words are right.
The job of a scientist is to look for the truth, and the job of a teacher is to help people to empower themselves. I failed to do my job on both counts.
It is however not just the job of scientists.