Adds async function for ST 3 on_deactivated, fixes #21