How to stop rtserver properly in UNIX/LINUX?