Cleanup of loading process