Changed version code
No change just a few spaces here and there
Added statements causing the crash to try-catch
Just added code to start the alarm manager
Refreshes service periodically

Since the service was getting killed after some time and not responding
in an accurate manner I'm using an alarm which goes off every 30 minutes
and restarts the service