Use boost::scoped_ptr in class ShadowHand.