Bugfixes and alternative isPIDAlive on linux