add winforms reference
add restart when crash and log error msg