Always trigger 'complete' event on the end of the request

Fix #575