in the close event set isConnected=false
remove check task complete
add status check function
add task complete event