invalidate peripheral after connection established or failed

Hi, I added watchedog invalidate method right after the connection has been established or failed.