Added a better handler to deco if the connection is lost, not perfect,
but way better :)