The most important responsibility of the session manager is to manage how resources and services in the image are started-up and shut-down at appropriate times (boot, save, quit). For example, when the image starts, several initialization routines should be executed to make sure that the image has access to the graphic drivers, the standard input/output file descriptors and so on.