Replaced grape exceptions with standard error handling..