Working on segfault for invalid bluetooth devices