Adding basic response handlers for close and clear