[common] fixes exception catch order