Open NBT stream in try catch.