How to deal with the unexpected