I did not try GUI stuff, but when my tablet went to sleep while executing a long-running command, when I returned to the bash shell, the command failed with a message stating "interrupted syscall" or the like. Not sure if this is the common/intended behaviour.