The coordination of terminal differentiation and cell cycle exit is mediated through the regulation of chromatin accessibility