Don't freak out if we close a pipe twice

This may or may not be a good idea; I'm just following
the standard set by the JVM implementation