fix notify send a receive, error when closing