better error callback
gracefully exit in 10 secs