Added `\n` to the error message to show them properly
Registered `SIGTERM` to deregister and exit and clear log messages

I added `SIGTERM` as another signal to listen to deregister the
container and exit the process due docker sends it when `stop` container
is executed.
Moreover I added the containers name to the log information messages
Added Dockerfile to containerise `register` process