Modify break.py to check for internet connectivity before running