Fix some switchToFrame exception propagation
Merge pull request #2 from dmose/master

fix exception propagation