move connection outside devices loop, activated retry, inspect notification and device