If the above wasn't the case, to close two things you would have to:
```java
 try {
                 pw.close();
} catch(IOException e) {
 // ignore
} 
 try {
                 sw.close();
} catch(IOException e) {
 // ignore
} 
```