Adds a way to quit the app...
Fix deprecated : function compositeToPoint
Adds some security
Optimizes somes function

Check device reachability in a block to not lock the main thread.
Call main thread to display an alert to be reduce crash probability