[WFLY-1879] Better exception handling when File.listFiles() fails