Added more error handling to the setup.py