Log perl errors and warnings for easier debugging

git-svn-id: https://svn.qindel.com/repos/main/projects/qindel/QVD/src/trunk@20500 4046b530-fbad-4e16-af16-ee11f0b55167
Ignore SIGPIPE. Otherwise things break on OSX when connecting to an unpatched nxagent due to a non-working slave channel

git-svn-id: https://svn.qindel.com/repos/main/projects/qindel/QVD/src/trunk@20501 4046b530-fbad-4e16-af16-ee11f0b55167
_on_error event was not being handled from all the stopping substates

git-svn-id: https://svn.qindel.com/repos/main/projects/qindel/QVD/src/trunk@20508 4046b530-fbad-4e16-af16-ee11f0b55167
update current_di_id on vm_runtimes database when the VM is started or stopped, fixes #1358

git-svn-id: https://svn.qindel.com/repos/main/projects/qindel/QVD/src/trunk@20510 4046b530-fbad-4e16-af16-ee11f0b55167
Fixing problems with hkd init script

git-svn-id: https://svn.qindel.com/repos/main/projects/qindel/QVD/src/trunk@20513 4046b530-fbad-4e16-af16-ee11f0b55167