move shutdown command to a separate file.
install spank.
require gems in the default group.
register components into container.
extract separate startup commands.
run startup commands in command chain.