Second-order semi-implicit Crank-Nicolson scheme for a coupled magnetohydrodynamics system