improved link error handling.
developed using librabbitmq 1.0.2