fail gracefuly