Exit on database timtout