Add error message when it failed to open the key file