Numerical simulations of Sun reveal a 'Magnetic Cage' controlling solar storms