This is the expected behaviour as you have started the On-Premise Poller in the foreground. To use the terminal after starting the service, you can start the service as a background process using the following command
sudo StartServer.sh &
"&" will put the process in the background and you can continue using the terminal.
You can find more information on this in the below link,