Added timeout on loss of wifi.
If wifi connection is lost a timeout is started and, if reached, it kills the
PhotoService.