Finishing communication between two applications