Why not just call primus.end here as it will do additional clean up.