Cleanup of initing process