Catch exception, not anything (which could be KeyboardInterrupt).