Adding try/catch before opening process