Improve exception handling in SSH session. Fix bug in getActiveBidIDs().