close all contexts in hybrid (in reverse order)