After user disconnect run the custom script