Yes I would have though as well if it wraps it it'll close it. So either remove sw.close or move it to a separate `try{`