Adding timeout to exit service.

Adding timeout to exit service when there is no signal from server within 10 minutes.
Usually there is a response every minute.
This should help with a "stuck" state.