The patch doesn't look good to me.
In fact, shutdown -f command doesn't really hang, it just waits for the enter key
If you type enter on your keyboard, Karaf will shutdown correctly:
karaf@root> shutdown -f
So, I gonna take a look on the command itself.