Allow to chose log level in agent
Exit with error code when not reaching server