try to recover from errors