Process pid and one instance managment