Clean up startup code.