Perform a proper exit for the reportServer goroutine
Perform a proper exit for the reportServer goroutine

Previously, the goroutine would block for 24 hours and would only check
every 24 hours if the server was closed. Since this never happened, the
goroutine would just be abruptly killed when the main process ended
(since nobody waited for this goroutine to end).

Updating the code to exit when the server is closed immediately and
switching the timer to a ticker instance that can be stopped.

daachi/influxdb,vladlopes/influxdb,influxdb/influxdb,linearb/influxdb,nooproblem/influxdb,runner-mei/influxdb,li-ang/influxdb,daachi/influxdb,otoolep/influxdb,vladlopes/influxdb,apigee/influxdb,mnuessler/influxdb,influxdb/influxdb,influxdb/influxdb,joaopedrotaveira/influxdb,mark-rushakoff/influxdb,otoolep/influxdb,pkittenis/influxdb,mnuessler/influxdb,runner-mei/influxdb,nooproblem/influxdb,chenziliang/influxdb,joaopedrotaveira/influxdb,apigee/influxdb,jgeiger/influxdb,benbjohnson/influxdb,daachi/influxdb,pkittenis/influxdb,chenziliang/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,joaopedrotaveira/influxdb,mark-rushakoff/influxdb,benbjohnson/influxdb,vladlopes/influxdb,daachi/influxdb,influxdb/influxdb,apigee/influxdb,jgeiger/influxdb,daachi/influxdb,joaopedrotaveira/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,otoolep/influxdb,linearb/influxdb,jgeiger/influxdb,archsaber/influxdb,joaopedrotaveira/influxdb,apigee/influxdb,pkittenis/influxdb,influxdb/influxdb,benbjohnson/influxdb,mark-rushakoff/influxdb,daachi/influxdb,vladlopes/influxdb,mnuessler/influxdb,chenziliang/influxdb,pkittenis/influxdb,runner-mei/influxdb,mnuessler/influxdb,apigee/influxdb,pkittenis/influxdb,jgeiger/influxdb,mnuessler/influxdb,li-ang/influxdb,archsaber/influxdb,pkittenis/influxdb,linearb/influxdb,nooproblem/influxdb,otoolep/influxdb,linearb/influxdb,chenziliang/influxdb,otoolep/influxdb,mnuessler/influxdb,archsaber/influxdb,jgeiger/influxdb,archsaber/influxdb,mark-rushakoff/influxdb,benbjohnson/influxdb,otoolep/influxdb,linearb/influxdb,jgeiger/influxdb,apigee/influxdb,influxdb/influxdb,runner-mei/influxdb,nooproblem/influxdb,influxdata/influxdb