finish request on success or failure (thanks @jerith)