Bug Fixed

Session ID set to 0 on connection error