Added error handling functions, that writes an error file with path.<date(HEX)>, containing a custom message