prevent website from stucking if there is something wrong with the server