Fix Bugs:
1. Cannot kill log-to-file process;
2. Registration new card crashes if there is no contractor built-in