[#9] add stop server functionality