Added error handling in skin parse