Allow disable monitor thread, only create main tunnel.
Fix error 'Address already in use'.
Make monitor more reliable, and make sure tunnel be closed finally.