cleanup unused port option
use async_execute instead of thread to avoid deadlock
fixed test