Leadership and teamwork in safety-critical systems