fix behavior for canceling and requesting frames in frames handlers