delete the process afterwards

* wrap the post and wait functions
* put everything inside unwind-protect so the process is always deleted
add a simple draw/refresh