Fix recursive timeout and add exit status information.