What prevents export of a private key from Mavericks keychain?
It appears that your system was mistaken about being asleep (because an internal flag it used to keep track of sleep state got out of sync with the true state). As you confirmed later, a reboot fixes this problem.