Using channel as scope of handler