Sorted out error exit status