I don't know if the closed chapter 13 case will show on your credit report because it was not a discharge. It looks like they terminated the case before you were done with your payment plan. Getting another house with a foreclosure on your records is not going to happen for a few years and they'll really look closely at your payment history before they'll approve another loan.
Depending on your situation, you may also want to consider giving the house back to the bank in lieu of foreclosure. You should speak to an attorney about this. While you could speak to the loss mitigation department directly, my concern is that it may not be done right unless you have an attorney do it on your behalf as there are certain terms that need to be included in the agreement with the bank so that it does not affect your credit and it does not have adverse tax consequences (i.e., the bank could issue a 1099 for any deficiencies it forgives). You definitely want this to be done right.
Wishing you the best of luck.