Fix reading book interruption and trying to sleep

Fix #5114 and #5064.