Fixes error handling in getBody() and process()