Added error handling if the keyfile is not found