change timeout to 20s and shutdown only once