Close Function

close #2