added the ability to cleanup containers upon exception. 
added shutdown of hk2 locator
added the ability to wait on a socket connection