I need for my application to register its main class somehow, that pharo will send a message (class side) to it whenever image is started/finished, for example, to reconfigure database connections as they get invalid when image closes and opens again.
Is there any hook for pharo to be able to send a message to my class on image open and close? Thanks.