fix #688 - timeout error on activity detached

fix #688 - timeout error on activity detached