Cleanup when connection is not alive anymore