After losing his major clients and coming under investigation over defective court filings, embattled attorney David J. Stern is shutting down his foreclosure law practice.