make status a local var in all functions
throw -> error for better formatting
Merge pull request #7 from kbarbary/status

correctly capture status then forget it