added better error description and removed stop() function
added printing of critical error