Added listener to to stop and start service.