fix bug

1. assertion in release
2. handle interruption
3. ios 5.0 & 5.1