Made video recorder more robust

* sends sigint instead of sighup
* waits for the recorder process to finish
* runs the recorder shutdown code also on test interruption