A failing writer has to finish his novel before death catches up with him.
A failing author has to figure out how to end his novel before his time is up.