Remove "#close" API

Because many pages don't need to implement it.