The graceful exit problem in string cosmology