Moves sleep into a query_yn framework

Simplifies the code a bit, moves the option for asking if you want to save before sleep to simply enforceing it.