How the Actor life cycle works