Fixed bug in connect() method (wasn't clearing open positions)