Cubase leaves my UR22 silent after i close it

As far as I know there is a bug with the latest driver version which causes the issue you describe.
The only way to fix it is to install the previous 2.0.4 version.
It’s explained here :

Also, you shouldn’t be using Release Driver since it can cause more issues.
Please read the Audio Setup Guide.