Wrap startup into closure