tesla: Fix exception retvals on Windows.