Added the option to manually disconnect from server using WS