Fix stop function in init script for web