looked into close()'s mail issue