Issue 335.

A call to close will now release all resources even in the event that some file channels are already closed because of inturrupted threads.