write error message to console in case of error creating server keys