catch server failure on each transaction