Runtime environment cleanup