[fix] handle exit and error events of tail process as well as add retry
functionality