MythZoneminder: Make sure the connection to the server is shutdown on FE exit

This fixes a 'Not all threads were shut down properly' error when shutting
down the frontend.