Correctly check for error return of beginTrade() (fixes #57)