FIX: make the encapping process for Windows work under wine (by explicitly killing the task once finished).