improved Mojo::Exception context detection to better line up with user expectations