callback should be called when writesteam fires finish, not on response end.