Implement close_notify method