processing state should be reset before returning