How to catch a Nan?