handle timeout exceptions better