GRACEFUL EXIT IN QUANTUM STRING COSMOLOGY