bugifx error handling problems on opening socket