Fixed crash on app exit and made service more 'persistent'.