Best intentions, unsafe systems, & cognitive errors: How to avoid doing harm