Try to wrangle the possible NIO exceptions