When the process stops, all RPC connections should close too, right?

Or does currently "stop" keeps the RPC connection open forever and prevents bitcoin from shutting down?