Fixed Shoal to gracefully die.

Fixed debug lines in shoal_agent.