[KARAF-3372]only register HUP signal handler for non-windows platform