Fixes #40 - error being thrown triggering impromptu:close event