Fixed handle-cache to store only one handle per process and fixed bug that could cause process to become unnamed