Added exception handling for all_gnubox

Signed-off-by: Deepak Jha <deepak.jha@turn.com>