Created a standard UNIX/Linux error handling functions