Copied from RegisterActicity in case no network during Mainactivity + BackPress()

- Now it should properly close the MainActivity even if the
Deregisteration fails in case of no network