Preparing for the unexpected with diabetes