Turns out running application's proccess id can be -1