fixed exit status with error