Adds a check for WiFi service before performing any actions.
This fixes issues #46 and 47