make sure to reply back error to client if pre-upgrade fails