Use simplified status check
Send errors to STDERR
Auto cleanup tmpfile on exit