Justice system fails too many of the mentally ill