Airplanemode

# READY FOR REVIEW

* Adds a number of checks and catches for functionality that was relying on a good connection with the server.
check_plain() should be used instead.