Fixed services crash when main activity was killed