Worked on error handling, now catching unix signals