Add own functions for reporting errors
Read status and exit - works :)