Slightly more graceful shutdown