Workaround crash due to allocation GC

rs.finish() before any GC-like action avoids the finalizerdaemon
crash due to timeout.