Wait thread until it finished on FormClosed

Mark thread as background