Krylov Subspace Residual and Restarting for Certain Second Order Differential Equations