remove unused variable "err" from "clean_up"