Adds method to handle the os commands errors and display helper messages