Moved the networking part in a service to keep it alive longer

Signed-off-by: Raphael Catolino <raphael.catolino@gmail.com>