Found that sometimes fast iis reset doesn't work because it cannot terminate exisiting processes. Added code to kill them before.