Adding lifecycle logging to see when/how lifecycle events happen and the order they occur in.