Set options before connecting socket
Don't use logging in init library