Prevent app from crashing without internet