PSX lose 824 points breaching 40,000-mark