In patients undergoing thoracotomy , protecting the neurovascular bundle prior to positioning the retractor and preserving the intercostal nerve during closure can minimize pain during in-hospital recovery .