The ship , carrying 4,000 Korean laborers and their families , was enroute to what is now South Korea when it exploded and sank off the coast of western Japan in August 1945 .