title: Erlang finish or kill process
body: <p>I have erlang application. In this application i run process with <code>spawn(?MODULE, my_foo, [my_param1, my_param2, my_param3]).</code></p>
  
  <p>And my_foo:</p>
  
  <pre><code>my_foo(my_param1, my_param2, my_param3) -&gt;
    ...
    some code here
    ...
    ok.
  </code></pre>
  
  <p>When i open etop i see that this my_foo/3 function status: <code>proc_lib:sync_wait/2</code></p>
  
  <p>Than i try to put exit(self(), normal) in the end of my function, but i see same behavior: <code>proc_lib:sync_wait/2</code> in etop.</p>
  
  <p>How can i kill or exit process correctly?</p>
  
  <p>Thank you.</p>