* Terminate loop when no transport exists * Add log when closing HTTP loop because of shutdown * Add unit test