Deducting losses after an S corporation terminates