Normally you have to be moved out and the home cleaned prior to closing. There are options for temporary lease backs, talk to your agent about your needs.