Close some functions