Cleaning up component mounts.