# Mitmproxy dump wrap and signals

**URL:** <https://discourse.mitmproxy.org/t/mitmproxy-dump-wrap-and-signals/1288>\
**Category:** help\
**Created:** [October 21, 2018, 2:42pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-dump-wrap-and-signals/1288 "2018-10-21T14:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YafimK](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/yafimk/32/365_2.png) [@YafimK](https://discourse.mitmproxy.org/u/YafimK)\
**Post date:** [October 21, 2018, 2:42pm UTC](https://discourse.mitmproxy.org/t/mitmproxy-dump-wrap-and-signals/1288/1 "2018-10-21T14:42:44Z")

</div>

hi,  
I’ve wrapped mitmproxy and launched it with subprocess but i’d like to close and stop it’s recording with “Enter” press instead of “Ctrl+c” (since pressing “enter” is much more intuitive for users").

But I’m getting that mitm dump either stays after closing the subprocess or it closes without calling the “Done()” hook that the har addon uses.  
Is there any good workaround for such issues? I’ve been thinking on simply using mitmproxy as library and launching it without wrapping but I’ve seen that `mhils` has discouraged against it… any other solution?
