handle disconnected var & add some additional error reporting