Fix webkit websocket closing and container issues