Q2. There is no such thing as a Timeout for the container. When your application finishes and closes and in this scenario the jvm stops, then the ApplicationContext goes away.
Q1. The beginning parts is about the Initialization phase of the ApplicationContext and the steps and order that they occur.
http://tech-tauk.blogspot.com/2010/11/spring-bean-life-cycle-phases.html
The initialization phase
1) Read the xml, all the xml and all the Configuration annotations in your classes and create BeanDefinition objects of it.
2) BeanFactoryPostProcessor step. Can change the BeanDefinition objects
3) Instantiate your objects, set dependenies, set properties
4) BeanPostProcessors
So in #3 above that is when your printlns are printing at the top.
Hope that helps, and hope the link explains it in much more detail for you.
Mark