Basic error handling.