Make recursion decision only on mask zoom level.
Try to make program stop safely after an exception is thrown in a future.