bash error handling script