checking whether process is running in status method