Better exception handling for wrong passcode

Fixes #8