To nurture scientific discovery, universities and grant institutions must do a better job of rewarding failure.