Fix: Agent connection error handling, updated packager tests.