exit process on server failure