A system with the open loop transfer function $$G(s)=\dfrac{K}{s(s+2)(s^2+2s+2)}$$ is connected in a negative feedback configuration with a feedback gain of unity. For the closed loop system to be marginally stable, the value of $K$ is ______