Improve formatting on error, change exit status

Changed exist status on error to 2 and improved formatting a bit.